# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=pcsc-tools
pkgver=1.7.1
pkgrel=0
pkgdesc="tools to test a PC/SC driver, card or reader or send commands"
url="https://pcsc-tools.apdu.fr/"
arch="all"
license="GPL-2.0-or-later"
depends="pcsc-perl"
makedepends="pcsc-lite-dev"
subpackages="$pkgname-doc"
source="https://pcsc-tools.apdu.fr/pcsc-tools-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
fe60610122d05f97edf3462c9382b82c31ee75f1851db2d88088ebd378ea3f54b3112b1c1f59dd8315806f33b822e40f96d7bc186b8c5999ef339711f91136c0  pcsc-tools-1.7.1.tar.bz2
"
